i=input()
j=input()
k=j.find(i)
if k<0:
    print('Not Found')
else:
    print("index = {}".format(k))